package emil.poker.players;

import emil.poker.Decision;

public class ManualPlayer extends TestPlayer{
	Decision nextDecision;
	
	public Decision getNextDecision() {
		return nextDecision;
	}

	public void setNextDecision(Decision nextDecision) {
		this.nextDecision = nextDecision;
	}

	@Override
	public Decision makeDecision( Decision[] list ) {
		displayInfo();
		if ( Decision.RAISE.equals(nextDecision) || Decision.BET.equals(nextDecision) ) {
			return raiseOrCall(list);
		} else if ( Decision.CALL.equals(nextDecision) || Decision.CHECK.equals(nextDecision) ) {
			return callOrCheck(list);
		} else {
			return foldOrCheck(list);
		}
	}

	public ManualPlayer() {
		super("ManualPlayer");
		// TODO Auto-generated constructor stub
	}

	public ManualPlayer(String name) {
		super(name);
		// TODO Auto-generated constructor stub
	}
	
	
}
